const state = () => ({
  message: {},
  monitorData: {},
  printLog: {},
})
const getters = {
  getMessage: (state) => state.message,
  getMonitorData: (state) => state.monitorData,
  getPrintLog: (state) => state.printLog,
}
const mutations = {
  setMessage(state, message) {
    state.message = message
  },
  setMonitorData(state, monitorData) {
    state.monitorData = monitorData
  },
  setPrintLog(state, printLog) {
    state.printLog = printLog
  },
}
const actions = {
  setMessage({ commit }, message) {
    commit('setMessage', message)
  },
  setMonitorData({ commit }, monitorData) {
    commit('setMonitorData', monitorData)
  },
  setPrintLog({ commit }, printLog) {
    commit('setPrintLog', printLog)
  },
}
export default { state, getters, mutations, actions }
